package com.xgk.boot.module.core.dal.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 费用试算记录
 * </p>
 *
 * @author yfbao
 * @since 2025-06-14
 */
@Data
@TableName("order_fee_preferred")
public class OrderFeePreferredDO extends BaseDO {

    @TableId(value = "ofp_id", type = IdType.ASSIGN_ID)
    private Long ofpId;

    /**
     * 状态
     */
    @TableField("ofp_status")
    private Integer ofpStatus;

    /**
     * 执行次数
     */
    @TableField("ofp_run_count")
    private Integer ofpRunCount;

    /**
     * 订单ID
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 订单编号
     */
    @TableField("order_code")
    private String orderCode;

    /**
     * 试算结果
     */
    @TableField("result")
    private String result;

    /**
     * 添加时间
     */
    @TableField("ofp_add_time")
    private Date ofpAddTime;

    /**
     * 更新时间
     */
    @TableField("ofp_update_time")
    private Date ofpUpdateTime;

    /**
     * 备注
     */
    @TableField("note")
    private String note;


    @Override
    public String toString() {
        return "OrderFeePreferred{" +
        ", ofpId = " + ofpId +
        ", ofpStatus = " + ofpStatus +
        ", ofpRunCount = " + ofpRunCount +
        ", orderId = " + orderId +
        ", orderCode = " + orderCode +
        ", result = " + result +
        ", ofpAddTime = " + ofpAddTime +
        ", ofpUpdateTime = " + ofpUpdateTime +
        ", note = " + note +
        "}";
    }
}
